package cn.t.dto.api;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author l
 */
@Data
public class OpenDoorRequestDTO implements Serializable {
    /**
     * 企业ID
     * customerCode
     * companyId
     */
    @JsonAlias(value={"companyId", "customerCode"})
    private String companyId;
    /**
     * 企业名称
     * customerName
     * companyName
     */
    @JsonAlias(value={"companyName", "customerName"})
    private String companyName;
    /**
     * 员工工号
     * empNo
     */
    @JsonAlias(value={"jobNum","jobNumber","empId"})
    private String empId;
    /**
     * 员工姓名
     */
    @JsonAlias(value={"empName","name"})
    private String empName;
    /**
     * 二维码
     */
    private String qrcode;

    /**
     * 时间戳
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date timestamp;
}
